//
//  HXIflyJobRecordDetailsTableViewCell.m
//  KD
//
//  Created by GaoFei on 16/7/9.
//  Copyright © 2016年 Whx. All rights reserved.
//

#import "HXIflyJobRecordDetailsTableViewCell.h"
#import "NSString+Frame.h"

@implementation HXIflyJobRecordDetailsTableViewCell

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setReplistModel:(HXReadDayWorkOrCommentReplistModel *)replistModel{

    _replistModel = replistModel;
    
    //姓名
    _userNameLabel.text = _replistModel.MC_SendName;
    
    //时间
    //截取时间
    NSRange sendTimeRange = NSMakeRange(5, _replistModel.MC_SendDate.length - 5);
    NSString * sendTime = [_replistModel.MC_SendDate substringWithRange:sendTimeRange];
    _dateLabel.text = sendTime;
    
    //评论的内容
    CGFloat commentHeight = [_replistModel.MC_Content heightWithFont:[UIFont systemFontOfSize:15] withinWidth:HXSCREEN_WIDTH-3*8];
    _commentLabel.frame = CGRectMake(_commentLabel.x, _commentLabel.y, _commentLabel.width, commentHeight);
    _commentLabel.text = _replistModel.MC_Content;
}

- (IBAction)userImgViewBtnAct:(UIButton *)sender {
}


@end
